package com.sskj.api.vo.srs;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "视频流信息")
public class StreamInfo {
    @Schema(description = "唯一标识ID")
    private String id;

    @Schema(description = "虚拟主机名")
    private String vhost;

    @Schema(description = "应用名称")
    private String app;

    @Schema(description = "流名称")
    private String name;

    @Schema(description = "URL中的参数部分")
    private String param;

    @Schema(description = "流创建时间戳(Unix 毫秒时间)")
    @JsonProperty("live_ms")
    private Long liveMs;

    @Schema(description = "当前订阅该流的客户端总数（包括播放器、转发等）")
    private Integer clients;

    @Schema(description = "已发送总字节数")
    @JsonProperty("send_bytes")
    private Long sendBytes;

    @Schema(description = "已接收总字节数")
    @JsonProperty("recv_bytes")
    private Long recvBytes;

    @Schema(description = "视频信息")
    private StreamVideo video;

    @Schema(description = "音频信息")
    private StreamAudio audio;
}
